package com.bydq.patrolsystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 写代码是不可能写代码的啦~~
 * @since 2020-05-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class PsSystemconfig implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("configCode")
    private String configCode;

    @TableField("configName")
    private String configName;

    @TableField("configValueId")
    private Integer configValueId;

    @TableField("configValueName")
    private String configValueName;

    @TableField("isStart")
    private Integer isStart;

    public String getIsStartStr(){
        if(isStart==0){
            return "停用";
        }else if(isStart==1){
            return "启用";
        }else{
            return "";
        }
    }


}
